<div class="admin_form">
	<div class="page-header">
		<h1><?= $this->output->title() ?></h1>
	</div>
	<?php
		$hiddens = array(
			'id'=>$item->id,
		);
	?>
	<?= formOpenMultipart(site_url('admin/user/editdetail')) ?>
		<?= input_row('fullname', $item->fullname, lang('fullname')) ?>
		<?= input_row('name_alias', $item->name_alias, lang('name_alias')) ?>
		<?= upload_row('avatar', lang('avatar'), 'accept="image/*" class="hasPreview" data-src="'.base_url().trim($this->config->item('folder_image'), '/').'/'.$item->avatar.'"') ?>
		<?= radios_row('gender', array(0=>lang('man'), 1=>lang('woman'), -1=>lang('na')), $item->gender, lang('gender')) ?>
		<?= inputdatetime_row('birthday', $item->birthday, lang('birthday')) ?>
		<script type="text/javascript">
			$(function()
			{
				$('.row_birthday .controls').datetimepicker({
					format: 'yyyy-MM-dd',
					language: 'en'
				});
			});
		</script>
		<?= input_row('address', $item->address, lang('address')) ?>
		<?= textarea_row('about', $item->about, lang('about')) ?>
		<?php $buttons = array();
			$buttons[] = formButton(array('type'=>'submit', 'class'=>'btn btn-primary'), lang('submit'));
			$buttons[] = formButton(array('type'=>'reset'), lang('reset'));
		?>
		<?= buttons_row($buttons); ?>
		<?= formHidden('id', $item->id); ?>
	<?= formClose() ?>
</div>